/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const nestedRouter = {
  path: '/addedService',
  component: Layout,
  redirect: '/addedService/menu1/menu1-1',
  name: 'nested3',
  meta: {
    title: 'nested3',
    icon: 'nested'
  },
  children: [
    {
      path: 'transportContract',
      component: () => import('@/views/addedService/transportContract/index'), // Parent router-view
      name: 'transportContract',
      meta: {
        title: 'qqqq'
      },
      redirect: '/addedService/transportContract/shipperContract',
      children: [{
        path: 'shipperContract',
        component: () => import('@/views/addedService/transportContract/shipperContract'),
        name: 'shipperContract',
        meta: {
          title: 'shipperContract'
        }
      },
      {
        path: 'carrierContract',
        component: () => import('@/views/addedService/transportContract/carrierContract'),
        name: 'carrierContract',
        meta: {
          title: 'carrierContract'
        }
      }
      ]
    },
    {
      path: 'InsuranceServices',
      component: () => import('@/views/addedService/InsuranceServices/index'), // Parent router-view
      name: 'InsuranceServices',
      meta: {
        title: 'InsuranceServices'
      },
      redirect: '/nested2/InsuranceServices/guaranteeSlip',
      children: [{
        path: 'guaranteeSlip',
        component: () => import('@/views/addedService/InsuranceServices/guaranteeSlip'),
        name: 'guaranteeSlip',
        meta: {
          title: 'guaranteeSlip'
        }
      },
      {
        path: 'ETC',
        component: () => import('@/views/addedService/InsuranceServices/ETC'),
        name: 'ETC',
        meta: {
          title: 'ETC'
        }
      }
      ]
    },
    {
      path: 'oilCard',
      component: () => import('@/views/addedService/oilCard/index'), // Parent router-view
      name: 'oilCard',
      meta: {
        title: 'oilCard'
      },
      redirect: '/nested2/oilCard/cardBalance',
      children: [{
        path: 'cardBalance',
        component: () => import('@/views/addedService/oilCard/cardBalance/cardBalanceList'),
        name: 'cardBalance',
        meta: {
          title: 'cardBalance'
        }
      }
      ]
    }
  ]
}

export default nestedRouter
